import React, { Component } from 'react'
import UserContext from '../context/user-context'

export default class HomeInfo extends Component {
  render() {
    return (
      <UserContext.Consumer>
        {
          (value) => {
            return <div>HomeInfo: {value.nickname}-{value.level}</div>
          }
        }
      </UserContext.Consumer>
    )
  }
}
